package com.foo.demo.provider;

import com.foo.demo.api.HelloService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * Created by Zetas on 2016/11/30.
 */
@Service
public class HelloServiceImpl implements HelloService {

    private static final Logger logger = LoggerFactory.getLogger(HelloServiceImpl.class);

    @Override
    public String hello(String msg) {
        logger.info("consumer message: " + msg);
        return "provider + " + msg;
    }
}
